package com.shire.shire_interface.service.account;

import com.shire.shire_interface.model.accounts.UserAccount;
import com.shire.shire_interface.model.command.WxCommand;
import com.shire.shire_interface.model.user.WxAccount;
import com.shire.shire_interface.model.user.WxAccountExample;

import java.util.List;


public interface WxAccountService {
    WxAccount getWxAccountById(Integer accountId);
    WxAccount getWxAccountByAccountName(Integer csId, String account);

    WxAccount getWxAccountByWxId(String wxId);
    List<UserAccount> getSystemUserByWxid(String wxId);

    int insertWxAccount(WxAccount wxAccount);
    int updateWxAccount(WxAccount wxAccount);
    boolean isOneOfCs(String wxId);

    List<WxAccount> getWxAccountsByCsId(WxAccountExample example);

    void accountUpdated(WxCommand command);
}
